import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/user_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class UserListEntity {
	late int code;
	late String msg;
	late List<UserListData> data;

	UserListEntity();

	factory UserListEntity.fromJson(Map<String, dynamic> json) => $UserListEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserListData {
	late String account;
	late String nickname;
	late String photo;
	UserListData();

	factory UserListData.fromJson(Map<String, dynamic> json) => $UserListDataFromJson(json);

	Map<String, dynamic> toJson() => $UserListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}